﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Remoting.Messaging;
using System.Text;
using System.Threading.Tasks;

namespace _030
{
    public interface Iwebsite//定义一个接口
    {
        void setValue(string str1, string str2);
        void disPlay();
    }
    public class Website:Iwebsite//定义一个类实现接口
    {
        public string name, url;
        public void setValue(string n,string u)
        {
            name = n;
            url = u;
        }
        public void disPlay()
        {
            Console.WriteLine("{0} {1}",name,url);
        }
    }
    internal class Program
    {
        static void Main(string[] args)
        {
            Website web = new Website();
            web.setValue("C#中文网", "http://c.biancheng.net");
            web.disPlay();
            Console.ReadKey();
        }
    }
}
